const formatQuery = (query = {}) => {
  const excludes = [ 'limit', 'page', 'orders' ];
  const options = {};
  for (const key in query) {
    if (Object.prototype.hasOwnProperty.call(query, key) && !excludes.includes(key)) {
      const data = query[key];
      options[key] = data;
    }
  }
  return options;
};

export default {
  formatQuery,
};
